using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Chan_cli
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            try
            {
            	Application.Run(new frmDebug());
            }
            catch (Exception e)
            {
            	MessageBox.Show("Caught an exception that's escaped to the top level; Should probably have caught this earlier.\r\n\r\nIt may not be possible to continue application execution.", "This is bad", MessageBoxButtons.OK, MessageBoxIcon.Error);
            	Chanutils.HELP.DumpException(e);
            }
        }
    }
}
